package com.authine.cloudpivot.web.api.secondopen.dao;

import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: brookpeng
 * @Date: 2021/9/15 17:52
 */
@Repository
public interface Iusi6HYGLMapper {

    /**
     * 查询所有会议室信息
     *
     * @return
     */
    public List<Map<String, Object>> getMeetingInfoAll(@Param(value = "date") String date, @Param(value = "tableName") String tableName, @Param(value = "thismonth") Boolean thismonth, @Param(value = "thisweek") Boolean thisweek,@Param(value = "companyId") String companyId,@Param(value = "meetroom") String meetroom);

    /**
     * 根据创建人部门查询会议室信息
     *
     * @param sql
     * @return
     */
    public List<Map<String, Object>> getMeetingInfoByQueryCode(String date,Boolean thismonth, Boolean thisweek , List list,String meetroom);

    /**
     * 获取选择的会议室的会议日程
     *
     * @param meetingRoomName 会议室名称
     * @return
     */
    public List<Map<String, Object>> getSelectedMeetingRoomSchedules(String meetingRoomName);

    /**
     * 根据登录用户id获取会议日程
     *
     * @param userId 当前登录用户userId
     * @return
     */
    public List<Map<String, Object>> getMeetingSchedulesByUserId(String userId);

    /**
     * 自定义sql
     * @param sql
     * @return
     */
    public List<Map<String, Object>> getData(String sql);

    /**
     * 根据id获取组织名称
     * @param deptId
     * @return
     */
    public Map<String, Object> getDeptNameById(String deptId);
}
